﻿using System;
using System.Collections.Generic;

namespace MultiDAQ_Analysis.Calculation.Results
{
    public class MeasurementCalculationResult
    {
        public string MeasurementType { get; set; }
        public Dictionary<int, ChannelCalculationResult> ChannelResults { get; set; } = new Dictionary<int, ChannelCalculationResult>();
        public bool IsSuccess { get; set; }
        public string ErrorMessage { get; set; }
        public DateTime CalculationTime { get; set; } = DateTime.Now;
        public bool IsFinalResult { get; set; }
    }

    public class ChannelCalculationResult
    {
        public int ChannelIndex { get; set; }
        public double AlphaResult { get; set; }
        public double BetaResult { get; set; }
        public double AlphaUncertainty { get; set; }
        public double BetaUncertainty { get; set; }
        //public bool IsValid { get; set; }
        public Dictionary<string, double> ExtendedResults { get; set; } = new Dictionary<string, double>();
    }
}